package com.forum.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.forum.entity.CourseorderEntity;
import com.forum.entity.view.CourseorderView;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


/**
 * <p>
 * 课程订单 Mapper 接口
 * </p>
 *
 * @author 张继成
 * @since 2023-12-31
 */
public interface CourseorderDao extends BaseMapper<CourseorderEntity> {
    void updateState(@Param("dingdanbianhao")String no,
                     @Param("ispay") String state,
                     @Param("zhifushijian")String gmtPayment,
                     @Param("alipayNo")String alipayTradeNo);

    /*List<KechengdingdanVO> selectListVO(@Param("ew") Wrapper<KechengdingdanEntity> wrapper);

    KechengdingdanVO selectVO(@Param("ew") Wrapper<KechengdingdanEntity> wrapper);
*/
    List<CourseorderView> selectListView(@Param("ew") Wrapper<CourseorderEntity> wrapper);

    List<CourseorderView> selectListView(Pagination page, @Param("ew") Wrapper<CourseorderEntity> wrapper);

    CourseorderView selectView(@Param("ew") Wrapper<CourseorderEntity> wrapper);


    List<Map<String, Object>> selectValue(@Param("params") Map<String, Object> params, @Param("ew") Wrapper<CourseorderEntity> wrapper);

    List<Map<String, Object>> selectTimeStatValue(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<CourseorderEntity> wrapper);

    List<Map<String, Object>> selectGroup(@Param("params") Map<String, Object> params,@Param("ew") Wrapper<CourseorderEntity> wrapper);

}
